package com.ruoyi.sj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sj.mapper.WithdrawMapper;
import com.ruoyi.sj.domain.Withdraw;
import com.ruoyi.sj.service.IWithdrawService;
import com.ruoyi.common.support.Convert;

/**
 * 提现记录 服务层实现
 * 
 * @author tyc@yanyu.com
 * @date 2018-11-30
 */
@Service
public class WithdrawServiceImpl implements IWithdrawService 
{
	@Autowired
	private WithdrawMapper withdrawMapper;

	/**
     * 查询提现记录信息
     * 
     * @param id 提现记录ID
     * @return 提现记录信息
     */
    @Override
	public Withdraw selectWithdrawById(Long id)
	{
	    return withdrawMapper.selectWithdrawById(id);
	}
	
	/**
     * 查询提现记录列表
     * 
     * @param withdraw 提现记录信息
     * @return 提现记录集合
     */
	@Override
	public List<Withdraw> selectWithdrawList(Withdraw withdraw)
	{
	    return withdrawMapper.selectWithdrawList(withdraw);
	}
	
    /**
     * 新增提现记录
     * 
     * @param withdraw 提现记录信息
     * @return 结果
     */
	@Override
	public int insertWithdraw(Withdraw withdraw)
	{
	    return withdrawMapper.insertWithdraw(withdraw);
	}
	
	/**
     * 修改提现记录
     * 
     * @param withdraw 提现记录信息
     * @return 结果
     */
	@Override
	public int updateWithdraw(Withdraw withdraw)
	{
	    return withdrawMapper.updateWithdraw(withdraw);
	}

	/**
     * 删除提现记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWithdrawByIds(String ids)
	{
		return withdrawMapper.deleteWithdrawByIds(Convert.toStrArray(ids));
	}
	
}
